| Total Complexity | 1 | 
| Total Lines | 14 | 
| Duplicated Lines | 0 % | 
| Changes | 0 | ||
| 1 | 'use strict'; | ||
| 9 | class ValidationError extends OAuthError { | ||
| 10 | /** | ||
| 11 | * Create a new ValidationError | ||
| 12 |    * @param {string} message - Error message | ||
| 13 |    * @param {string} [code] - Error code | ||
| 14 |    * @param {string} [description] - Error description | ||
| 15 |    * @param {string} [intuitTid] - Intuit transaction ID | ||
| 16 | */ | ||
| 17 |   constructor(message, code, description, intuitTid) { | ||
| 18 | super(message, code || 'VALIDATION_ERROR', description || message, intuitTid); | ||
| 19 | this.name = 'ValidationError'; | ||
| 20 | Object.setPrototypeOf(this, ValidationError.prototype); | ||
| 21 | } | ||
| 22 | } | ||
| 23 | |||
| 24 | module.exports = ValidationError; |